package com.quanyan.messagepush.service;

import com.quanyan.api.APIResponse;
import com.quanyan.messagepush.enums.PushApplication;

import java.util.List;

/**
 * 消息推送
 * Created by Zheng.Ke
 * Date 2016/6/28.
 */
public interface MessagePushService {

    /**
     * 向iOS少量甚至几个用户推送消息
     * @param pushApplication  个推应用
     * @param pushText    文字
     * @param deviceToken  IOS设备唯一标识
     * @return
     */
    APIResponse pushMessageToSingleForIOS(PushApplication pushApplication, String pushText, String deviceToken);

    /**
     * 向Android少量甚至几个用户推送消息
     * @param pushApplication  个推应用
     * @param pushText    文字
     * @param cid  用户个推cid
     * @return
     */
    APIResponse pushMessageToSingleForAndroid(PushApplication pushApplication, String pushText, String cid);

    /**
     * 向指定Android用户列表推送消息
     * @param pushApplication  个推应用
     * @param pushText  文字
     * @param cidList  用户个推cid列表
     * @return
     */
    APIResponse pushMessageToListForAndroid(PushApplication pushApplication, String pushText, List<String> cidList);

}
